count subarrays with given xor